$(function () {
    /*发起请求查寻订单*/
    $.ajax({
        url:"findOrders.do",
        dataType:"JSON",
        type:"POST",
        success:function (resp) {
            $.each(resp,function (i, n) {
                $("#orders").append("                    <li class=\"minicart-product\">\n" +
                    "                        <a class=\"product-item_remove\" href=\"#\"><i\n" +
                    "                                class=\"pe-7s-close\"></i></a>\n" +
                    "                        <a href=\"shop.html\" class=\"product-item_img\">\n" +
                    "                            <img class=\"img-full\" src=\""+ n.fileName +"\" alt=\"Product Image\">\n" +
                    "                        </a>\n" +
                    "                        <div class=\"product-item_content\">\n" +
                    "                            <a class=\"product-item_title\" href=\"shop.html\">"+ n.goodsName +"</a>\n" +
                    "                            <span class=\"product-item_quantity\">"+ n.price +"</span>\n" +
                    "                        </div>\n" +
                    "                    </li>\n")
            })
        }
    })
})
